package com.itlong.cloud.POJO.DTO.property;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * <desc>
 *      用户拥有权限的地址数据传输对象
 * </desc>
 *
 * @createDate 2017/10/13
 */
@Data
@NoArgsConstructor
public class UserDeviceAuthAddreddDTO implements Serializable {
    private String authUserId;  //授权人Id，可能为用户id也可能为物业账号id
    private String userId;      //用户Id
    private String projectId;   //项目Id
//    private List<UserAuthRoomAddrDTO> userAuthRoomAddrDTOList;  //用户拥有的房间地址集合
    private Map<String, Object> userAuthRoomAddrMap;
        //用户拥有的房间地址集合 eg:{"buildId001":{"unitId01":"1001,1301","unitId03":"0703,0905"}}
    private Integer userType;   //用户在项目中的类型 TODO 定义

    //用于权限变更时的极光推送
    private String phoneNum;
    private String JpushMsg;

    public UserDeviceAuthAddreddDTO(
            String userId,
            String projectId,
            Map<String, Object> userAuthRoomAddrMap,
            Integer userType) {
        this.userId = userId;
        this.projectId = projectId;
        this.userAuthRoomAddrMap = userAuthRoomAddrMap;
        this.userType = userType;
    }

}
